package com.woniuxy.book.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author li
 * @since 2024年2月09日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("order_refund")
public class OrderRefund implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 退款订单编号
     */
    @TableId(value = "refund_id", type = IdType.AUTO)
    private String refundId;

    /**
     * 订单号
     */
    @TableField("order_id")
    private String orderId;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 退款金额
     */
    @TableField("refund_money")
    private BigDecimal refundMoney;

    /**
     * 退款原因
     */
    @TableField("refund_reason")
    private String refundReason;

    /**
     * 退款时间
     */
    @TableField("refund_time")
    private LocalDateTime refundTime;

    /**
     * 状态0待处理 1退款成功
     */
    @TableField("refund_state")
    private Integer refundState;

    /*
    * 被驳回原因
    * */
    @TableField("reject_reason")
    private String rejectReason;


}
